package com.ynet.middleground.mobile.approve.conf;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;

/**
 * 移动审批 H5 应用信息
 * 
 * @author liulx
 */
@Configuration
public class AppConfig {

    /**
     * appKey
     */
    @Value("${dingtalk.app_key}")
    private String appKey;

    /**
     * appSecret
     */
    @Value("${dingtalk.app_secret}")
    private String appSecret;

    /**
     * AgentId 是应用的唯一标识。
     */
    @Value("${dingtalk.agent_id}")
    private Long agentId;

    /**
     * CorpId 是企业在钉钉中的标识，每个企业拥有唯一的 CorpId。
     */
    @Value("${dingtalk.corp_id}")
    private String corpId;

    public String getAppKey() {
        return appKey;
    }

    public void setAppKey(String appKey) {
        this.appKey = appKey;
    }

    public String getAppSecret() {
        return appSecret;
    }

    public void setAppSecret(String appSecret) {
        this.appSecret = appSecret;
    }

    public Long getAgentId() {
        return agentId;
    }

    public void setAgentId(Long agentId) {
        this.agentId = agentId;
    }

    public String getCorpId() {
        return corpId;
    }

    public void setCorpId(String corpId) {
        this.corpId = corpId;
    }

}
